package com.hksj.vcm.constant;

/**
 * 设备属性枚举
 */
public enum PropertyEnum {
    Songfl("送风量"),
    Songfkhd("送风阀开合度"),
    Paifl("排风量"),
    Paiffkhd("排风阀开合度"),
    Kongqyl("空气压力");

    private String text;

    PropertyEnum(String text) {
        this.text = text;
    }

    public String getValue() {
        return name();
    }

    public String getText(String name){
        for (PropertyEnum propertyEnum : PropertyEnum.values()) {
            if (propertyEnum.name().equals(name)) {
                return propertyEnum.text;
            }
        }
        return null;
    }
}
